home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ---- GGGGLLLLXXXX ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt((((3333GGGG)))) NNNNAAAAMMMMEEEE ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt - copy state from one rendering context to another CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN void ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt( Display *_d_p_y, GLXContext _s_r_c, GLXContext _d_s_t, GLuint _m_a_s_k ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _d_p_y Specifies the connection to the X server. _s_r_c Specifies the source context. _d_s_t Specifies the destination context. _m_a_s_k Specifies which portions of _s_r_c state are to be copied to _d_s_t. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt copies selected groups of state variables from _s_r_c to _d_s_t. _m_a_s_k indicates which groups of state variables are to be copied. _m_a_s_k contains the bitwise OR of the same symbolic names that are passed to the OpenGL command ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb. The single symbolic constant GGGGLLLL____AAAALLLLLLLL____AAAATTTTTTTTRRRRIIIIBBBB____BBBBIIIITTTTSSSS can be used to copy the maximum possible portion of rendering state. The copy can be done only if the renderers named by _s_r_c and _d_s_t share an address space. Two rendering contexts share an address space if both are nondirect using the same server, or if both are direct and owned by a single process. Note that in the nondirect case it is not necessary for the calling threads to share an address space, only for their related rendering contexts to share an address space. Not all values for OpenGL state can be copied. For example, pixel pack and unpack state, render mode state, and select and feedback state are not copied. The state that can be copied is exactly the state that is manipulated by OpenGL command ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb. An implicit ggggllllXXXXFFFFlllluuuusssshhhh is done by ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt if _s_r_c is the current context for the calling thread. NNNNOOOOTTTTEEEESSSS Two rendering contexts share an address space if both are nondirect using the same server, or if both are direct and owned by a single process. PPPPaaaaggggeeee 1111 ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ---- GGGGLLLLXXXX ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt((((3333GGGG)))) A _p_r_o_c_e_s_s is a single execution environment, implemented in a single address space, consisting of one or more threads. A _t_h_r_e_a_d is one of a set of subprocesses that share a single address space, but maintain separate program counters, stack spaces, and other related global data. A _t_h_r_e_a_d that is the only member of its subprocess group is equivalent to a _p_r_o_c_e_s_s. EEEERRRRRRRROOOORRRRSSSS BBBBaaaaddddMMMMaaaattttcccchhhh is generated if rendering contexts _s_r_c and _d_s_t do not share an address space or were not created with respect to the same screen. BBBBaaaaddddAAAAcccccccceeeessssssss is generated if _d_s_t is current to any thread (including the calling thread) at the time ggggllllXXXXCCCCooooppppyyyyCCCCoooonnnntttteeeexxxxtttt is called. GGGGLLLLXXXXBBBBaaaaddddCCCCuuuurrrrrrrreeeennnnttttWWWWiiiinnnnddddoooowwww is generated if _s_r_c is the current context and the current drawable is a window that is no longer valid. GGGGLLLLXXXXBBBBaaaaddddCCCCoooonnnntttteeeexxxxtttt is generated if either _s_r_c or _d_s_t is not a valid GLX context. BBBBaaaaddddVVVVaaaalllluuuueeee is generated if undefined _m_a_s_k bits are specified. MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS On all SGI systems, _s_r_c must be the current context and, except in the case of direct rendering contexts on IIIInnnnffffiiiinnnniiiitttteeeeRRRReeeeaaaalllliiiittttyyyy, RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee, RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee2222, and VVVVTTTTXXXX systems, _d_s_t must have been made current to some thread prior to the copy. On RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee, RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee2222, and VVVVTTTTXXXX, on IIIInnnnffffiiiinnnniiiitttteeeeRRRReeeeaaaalllliiiittttyyyy, on HHHHiiiigggghhhh IIIImmmmppppaaaacccctttt and MMMMaaaaxxxxiiiimmmmuuuummmm IIIImmmmppppaaaacccctttt, on SSSSoooolllliiiidddd IIIImmmmppppaaaacccctttt systems, and on OOOO2222 systems, it is not possible to use a context for rendering to both windows and pixmaps. SSSSEEEEEEEE AAAALLLLSSSSOOOO ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb, ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxtttt, ggggllllXXXXIIIIssssDDDDiiiirrrreeeecccctttt PPPPaaaaggggeeee 2222